﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace stringforrmat
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("Введите строку: ");
            //string str = Console.ReadLine();
            //string newstr = "";
            //for (int i = str.Length - 1; i >= 0; i--)
            //{
            //    newstr += str[i];

            //}

            Console.WriteLine("Введите строку: ");
            string str = Console.ReadLine();
            StringBuilder sb = new StringBuilder();

            for (int i = str.Length - 1; i >= 0; i--)

                sb.Append(str[i]);

            Console.WriteLine(sb);
            Console.ReadKey();


        }
    }

}